package com.lanhu.datastructure.stack;

/**
 * @author 蓝狐
 */
public class StackNode<T> {
    /**
     * 数据域
      */
    private T data;

    /**
     * 下一个结点
     */
    private StackNode next;

    public StackNode (T data, StackNode next) {
        this.data = data;
        this.next = next;
    }

    public StackNode () {
    }

    public T getData () {
        return data;
    }

    public void setData (T data) {
        this.data = data;
    }

    public StackNode getNext () {
        return next;
    }

    public void setNext (StackNode next) {
        this.next = next;
    }
}
